<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

      div{
          width: 100px;
          height: 100px;
          border:1px #ccc solid;
          border-radius: 10px;
          text-align: center;
          line-height: 100px;
          color:#fff;
          background-color: #000;
          font-size: 50px;
          margin: 100px auto;
      }

    </style>
</head>
<body>
        <button>开始</button>
        <button>暂停</button>
          <div id='time'>10</div>

</body>
</html>
<script>

    let btnList = document.getElementsByTagName('button');
    let timeDivObj = document.getElementById('time');

//开始
btnList[0].onclick=()=>{
     //获得div中的值
     let time = parseInt(timeDivObj.innerHTML);

     
}

//暂停
btnList[1].onclick=()=>{
    
}


</script>